Skip to content

Remove misguided call to srand() #836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

micha137
Copy link

A random number generator needs to be initialized once per process after a fork, but not after each request, more so with an argument that changes only once per second.

This fixes #778 / #781.

A random number generator needs to be initialized once per process after a fork, but not after each request, more so with an argument that changes only once per second.

This fixes SpiderLabs#778

This is a copy of my commit deec149.
@micha137
Copy link
Author

Hi @zimmerle,

could you apply this patch?

Best regards,
Michael

@zimmerle
Copy link
Contributor

Hi @micha137,

I apologize to the delay, I am working with your pull request now.

Thank you very much for your patch!

@zimmerle zimmerle self-assigned this Oct 16, 2015
@zimmerle zimmerle added this to the v2.9.1 milestone Oct 16, 2015
@zimmerle
Copy link
Contributor

Hi @micha137,

Sorry again for the delay. The code is now merged, the credits were cited under the changes file:

https://github.com/SpiderLabs/ModSecurity/blob/master/CHANGES#L4-L5

It will be released as part of version 2.9.1 (release data is not set yet). Check the milestone v2.9.1 for further information.

@zimmerle zimmerle closed this Oct 16, 2015
@micha137
Copy link
Author

@zimmerle: Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants